<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/log.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">log.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>日志打印/用户提示(告警)  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;SWM341.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
log.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="log_8h__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2log_8h" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2log_8h" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2log_8h">
<area shape="rect" title="日志打印/用户提示(告警)" alt="" coords="5,5,229,75"/>
<area shape="rect" title=" " alt="" coords="74,123,161,148"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="log_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2log_8hdep" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2log_8hdep" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2log_8hdep">
<area shape="rect" title="日志打印/用户提示(告警)" alt="" coords="872,5,1096,75"/>
<area shape="rect" href="file__table_8c.html" title="以文件表管理 SPI&#45;Flash 存储的文件" alt="" coords="5,123,229,192"/>
<area shape="rect" href="load__file_8c.html" title="加载/拷贝文件" alt="" coords="253,123,477,192"/>
<area shape="rect" href="load__mv_8c.html" title="播放 avi / wav 音视频" alt="" coords="501,123,725,192"/>
<area shape="rect" href="log_8c.html" title="日志打印/用户提示(告警)" alt="" coords="749,123,973,192"/>
<area shape="rect" href="ui_8h.html" title="UI 页面布局" alt="" coords="997,130,1216,185"/>
<area shape="rect" href="ui__boot_8c.html" title="开机动画/视频页, 挂载文件系统完成主页素材的导入" alt="" coords="1241,130,1482,185"/>
<area shape="rect" href="ui__update_8c.html" title="启动引导更新页, 挂载文件系统实现 UI 素材导入/更新(可选模块)" alt="" coords="1507,123,1725,192"/>
<area shape="rect" href="main_8c.html" title="主程序" alt="" coords="1749,130,1968,185"/>
<area shape="rect" href="setup__home__page__home_8c.html" title="Home 页" alt="" coords="123,357,341,427"/>
<area shape="rect" href="setup__home__page__m0_8c.html" title="M0 芯片选型页" alt="" coords="365,357,584,427"/>
<area shape="rect" href="setup__home__page__m4_8c.html" title="M4 芯片选型页" alt="" coords="608,357,827,427"/>
<area shape="rect" href="setup__home__page__pd_8c.html" title="产品介绍、应用宣传页" alt="" coords="851,357,1069,427"/>
<area shape="rect" href="setup__home__page__pp_8c.html" title="GIF 演示、中文字体应用页" alt="" coords="1336,357,1555,427"/>
<area shape="rect" href="setup__scr__home_8c.html" title="创建主桌面" alt="" coords="1579,357,1797,427"/>
<area shape="rect" href="setup__scr__m0__m4_8c.html" title="创建 M0 / M4 芯片具体型号介绍展示页" alt="" coords="1821,357,2040,427"/>
<area shape="rect" href="ui__event_8h.html" title="UI 页面事件回调" alt="" coords="997,240,1216,309"/>
<area shape="rect" href="ui_8c.html" title="UI 页面布局" alt="" coords="1392,247,1611,302"/>
<area shape="rect" href="ui__event_8c.html" title="UI 页面事件回调" alt="" coords="1093,357,1312,427"/>
</map>
</div>
</div>
<p><a href="log_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aa7a913a3a862165d0a8f2434ece70ca0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#aa7a913a3a862165d0a8f2434ece70ca0">USE_LOG</a></td></tr>
<tr class="memdesc:aa7a913a3a862165d0a8f2434ece70ca0"><td class="mdescLeft">&#160;</td><td class="mdescRight">调试日志打印使能宏  <a href="log_8h.html#aa7a913a3a862165d0a8f2434ece70ca0">更多...</a><br /></td></tr>
<tr class="separator:aa7a913a3a862165d0a8f2434ece70ca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a378e28bfcb78d17285210d6bbb70a083"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#a378e28bfcb78d17285210d6bbb70a083">LOG_INFO</a>(...)</td></tr>
<tr class="memdesc:a378e28bfcb78d17285210d6bbb70a083"><td class="mdescLeft">&#160;</td><td class="mdescRight">调试日志打印-普通  <a href="log_8h.html#a378e28bfcb78d17285210d6bbb70a083">更多...</a><br /></td></tr>
<tr class="separator:a378e28bfcb78d17285210d6bbb70a083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add82efa459e0af380b68522c29b9fd44"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#add82efa459e0af380b68522c29b9fd44">LOG_WARN</a>(...)</td></tr>
<tr class="memdesc:add82efa459e0af380b68522c29b9fd44"><td class="mdescLeft">&#160;</td><td class="mdescRight">调试日志打印-警告  <a href="log_8h.html#add82efa459e0af380b68522c29b9fd44">更多...</a><br /></td></tr>
<tr class="separator:add82efa459e0af380b68522c29b9fd44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4a9117ce894e3319e903142347a0f63"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#ad4a9117ce894e3319e903142347a0f63">LOG_ERROR</a>(...)</td></tr>
<tr class="memdesc:ad4a9117ce894e3319e903142347a0f63"><td class="mdescLeft">&#160;</td><td class="mdescRight">调试日志打印-错误  <a href="log_8h.html#ad4a9117ce894e3319e903142347a0f63">更多...</a><br /></td></tr>
<tr class="separator:ad4a9117ce894e3319e903142347a0f63"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:afe12af7fba29f5c026af71dfca1d1ff9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="log_8h.html#afe12af7fba29f5c026af71dfca1d1ff9">lvgl_show_error</a> (const char *text)</td></tr>
<tr class="memdesc:afe12af7fba29f5c026af71dfca1d1ff9"><td class="mdescLeft">&#160;</td><td class="mdescRight">应用 label 控件在屏幕上显示错误告警  <a href="log_8h.html#afe12af7fba29f5c026af71dfca1d1ff9">更多...</a><br /></td></tr>
<tr class="separator:afe12af7fba29f5c026af71dfca1d1ff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >日志打印/用户提示(告警) </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>/ </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">弃用:</a></b></dt><dd><a class="el" href="log_8h.html#afe12af7fba29f5c026af71dfca1d1ff9" title="应用 label 控件在屏幕上显示错误告警">lvgl_show_error()</a> 可能在以后的版本中取消在本模块定义, 改为各个模块私有实现, 如 Debug_FR_Table.</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="log_8h_source.html">log.h</a> 中定义.</p>
</div><h2 class="groupheader">宏定义说明</h2>
<a id="aa7a913a3a862165d0a8f2434ece70ca0" name="aa7a913a3a862165d0a8f2434ece70ca0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7a913a3a862165d0a8f2434ece70ca0">&#9670;&#160;</a></span>USE_LOG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define USE_LOG</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>调试日志打印使能宏 </p>

<p class="definition">在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00029">29</a> 行定义.</p>

</div>
</div>
<a id="a378e28bfcb78d17285210d6bbb70a083" name="a378e28bfcb78d17285210d6bbb70a083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a378e28bfcb78d17285210d6bbb70a083">&#9670;&#160;</a></span>LOG_INFO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_INFO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">                                    <span class="keywordflow">do</span> {                                                                                           \</div>
<div class="line">                                    printf(<span class="stringliteral">&quot;\r\n &gt;&gt;&gt;&gt;&gt;&gt; log:(line-%d) [%s]: &lt;&lt;&lt;&lt;&lt;&lt; \r\n&quot;</span>, __LINE__, __FUNCTION__); \</div>
<div class="line">                                    printf(__VA_ARGS__);                                                                       \</div>
<div class="line">                                } <span class="keywordflow">while</span> (0)</div>
</div><!-- fragment -->
<p>调试日志打印-普通 </p>

<p class="definition">在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="add82efa459e0af380b68522c29b9fd44" name="add82efa459e0af380b68522c29b9fd44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add82efa459e0af380b68522c29b9fd44">&#9670;&#160;</a></span>LOG_WARN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_WARN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">                                    <span class="keywordflow">do</span> {                                                                                           \</div>
<div class="line">                                    printf(<span class="stringliteral">&quot;\r\n &gt;&gt;&gt;&gt;&gt;&gt; warn:(line-%d) [%s]: &lt;&lt;&lt;&lt;&lt;&lt; \r\n&quot;</span>, __LINE__, __FUNCTION__); \</div>
<div class="line">                                    printf(__VA_ARGS__);                                                                       \</div>
<div class="line">                                } <span class="keywordflow">while</span> (0)</div>
</div><!-- fragment -->
<p>调试日志打印-警告 </p>

<p class="definition">在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00048">48</a> 行定义.</p>

</div>
</div>
<a id="ad4a9117ce894e3319e903142347a0f63" name="ad4a9117ce894e3319e903142347a0f63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4a9117ce894e3319e903142347a0f63">&#9670;&#160;</a></span>LOG_ERROR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_ERROR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">                                    <span class="keywordflow">do</span> {                                                                                            \</div>
<div class="line">                                    printf(<span class="stringliteral">&quot;\r\n &gt;&gt;&gt;&gt;&gt;&gt; error:(line-%d) [%s]: &lt;&lt;&lt;&lt;&lt;&lt; \r\n&quot;</span>, __LINE__, __FUNCTION__); \</div>
<div class="line">                                    printf(__VA_ARGS__);                                                                        \</div>
<div class="line">                                } <span class="keywordflow">while</span> (0)</div>
</div><!-- fragment -->
<p>调试日志打印-错误 </p>

<p class="definition">在文件 <a class="el" href="log_8h_source.html">log.h</a> 第 <a class="el" href="log_8h_source.html#l00054">54</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="afe12af7fba29f5c026af71dfca1d1ff9" name="afe12af7fba29f5c026af71dfca1d1ff9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe12af7fba29f5c026af71dfca1d1ff9">&#9670;&#160;</a></span>lvgl_show_error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void lvgl_show_error </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>应用 label 控件在屏幕上显示错误告警 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">text</td><td>: 错误提示文本, 可着色、仅支持英文 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>阻塞显示 </dd></dl>

<p class="definition">在文件 <a class="el" href="log_8c_source.html">log.c</a> 第 <a class="el" href="log_8c_source.html#l00032">32</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="log_8h_afe12af7fba29f5c026af71dfca1d1ff9_icgraph.png" border="0" usemap="#alog_8h_afe12af7fba29f5c026af71dfca1d1ff9_icgraph" alt=""/></div>
<map name="alog_8h_afe12af7fba29f5c026af71dfca1d1ff9_icgraph" id="alog_8h_afe12af7fba29f5c026af71dfca1d1ff9_icgraph">
<area shape="rect" title="应用 label 控件在屏幕上显示错误告警" alt="" coords="475,31,585,56"/>
<area shape="rect" href="ui__boot_8c.html#ad02910df5a0eb655a0a0495b475f7c0e" title="开机按计划自检, 完成一些文件系统挂载、素材文件的校验/更新等动作" alt="" coords="339,5,427,31"/>
<area shape="rect" href="ui__boot_8c.html#ad915e3f7b5aab86e375414a5844c500a" title="挂载文件系统以完成本地素材检测, 并将其导入至 SDRAM , 同时实现开机动画/视频效果" alt="" coords="227,31,291,56"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,31,179,56"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,31,56,56"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
